package com.teatang.tadmin.sysrole.controller;

import com.teatang.tadmin.core.controller.BaseApiController;
import com.teatang.tadmin.core.page.PageDataReturn;
import com.teatang.tadmin.sysrole.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysRoleApiController extends BaseApiController {
    @Autowired
    private SysRoleService sysRoleService;

    @GetMapping("/sys-role-api/list")
    public PageDataReturn pageList() {
        startPage();
        return sysRoleService.getSysRolePageData();
    }
}
